<?php

namespace App\Providers;

use App\Events\NotifyEvent;
use App\Events\RecivedCarEvent;
use App\Listeners\AcceptOrderListener;
use App\Listeners\ConfimOrderListener;
use App\Listeners\DispatchListener;
use App\Listeners\RecivedListener;
use App\Listeners\ReminderListener;
use App\Listeners\ReturnNotifyListener;
use App\Listeners\ReturnOrderListener;
use App\Listeners\ReturnPhotoListener;
use App\Listeners\SendPhotoListener;
use App\Listeners\TradeCreateListener;
use App\Listeners\TradeSuccessListener;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
//        Registered::class => [
//            SendEmailVerificationNotification::class,
//        ],
        NotifyEvent::class=>[
            TradeCreateListener::class, // 创建交易
            TradeSuccessListener::class, // 交易成功
            DispatchListener::class,
            AcceptOrderListener::class,
            SendPhotoListener::class,
            ReturnNotifyListener::class,
            ReturnOrderListener::class,
            ReturnPhotoListener::class,
            ReminderListener::class,
            ConfimOrderListener::class,
        ],
        RecivedCarEvent::class=>[
            RecivedListener::class
        ]
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
